from django.db import models
from django.contrib.auth.models import User,AbstractUser

# class User(AbstractUser):
#     class Meta(AbstractUser.Meta):
#         swappable = 'AUTH_USER_MODEL'

# Create your models here.

# class Userdetail(models.Model):
#     phone = models.CharField(max_length=128, null=True)
#     age = models.IntegerField(null=True)
#     users = models.OneToOneField(on_delete=models.CASCADE, to=User)

class Users(AbstractUser):
    phone = models.CharField(max_length=128, null=True)
    age = models.IntegerField(null=True)
